<template>
	 
<van-search
  v-model="key_word"
  show-action
  placeholder="请输入搜索关键词"
  @search="onSearch"
>
  <template #action>
    <div @click="onClickButton">搜索</div>
  </template>
</van-search>
</template>

<script setup>
	import {ref} from 'vue'
	import { useRouter } from 'vue-router';
	 const key_word = ref('');
const router = useRouter()
        function onSearch(){
			
			console.log(key_word.value)
			
			
			router.push('/searchList?key_word='+ key_word.value)
			
			
		}

  function onClickButton(){
	  
	  
  }
</script>

<style>
</style>